/* Copyright (c) 2004-2022 peigen.info. All rights reserved. */

package info.peigen.hotpot.common.core.domain.bank;

import cn.hutool.core.lang.Assert;
import com.google.common.collect.Lists;
import info.peigen.hotpot.common.core.enums.Currency;
import lombok.*;
import lombok.experimental.Accessors;
import lombok.experimental.FieldDefaults;
import lombok.experimental.SuperBuilder;

import java.util.List;

/**
 * <b>(BankSupportCurrency)</b>
 *
 * @author Peigen
 * @version 1.0.0
 * @since 2021/10/14
 */
@SuperBuilder
@Data
@NoArgsConstructor
@AllArgsConstructor
@FieldDefaults(level = AccessLevel.PRIVATE)
@Accessors(chain = true)
public class BankSupportCurrency {

    @Builder.Default
    List<Currency> directSupport = Lists.newArrayList(Currency.CNY);

    public void check() {
        Assert.notEmpty(directSupport, "[directSupport]不得为空");
    }
}